package com.example.booksales.core.config;

public class BizException extends RuntimeException {
    private int code=500;
    private String msg;
    public int getCode() {
        return code;
    }
    public void setCode(int code) {
        this.code = code;
    }
    public String getMsg() {
        return msg;
    }
    public BizException(int code,String msg) {
        this.code=code;
        this.msg=msg;
    }
    public BizException(String msg) {
        super(msg);
        this.msg=msg;
    }
}